package com.team5.menuservice.service;

import com.team5.menuservice.entity.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PermissionService {

	List<Permission> selectAll();

	List<Permission> selectPid(Integer pid);

	List<Permission> selectmenu();

	List<Permission> selectPermission();

	List<Permission> select(@Param("title")String title, @Param("index")Integer index, @Param("limit")Integer limit);

	List<Permission> select2(@Param("percode")String percode,@Param("title")String title,@Param("index")Integer index,@Param("limit")Integer limit);

	void insert(@Param("pid")Integer pid,@Param("title")String title,@Param("icon")String icon,@Param("href")String href
			,@Param("target")String target,@Param("open")Integer open,@Param("ordernum")Integer ordernum,@Param("available")Integer available);

	void delete(Integer id);

	void update(@Param("id")Integer id,@Param("pid")Integer pid,@Param("title")String title,@Param("icon")String icon,@Param("href")String href
			,@Param("target")String target,@Param("open")Integer open,@Param("ordernum")Integer ordernum,@Param("available")Integer available);

	void insert2(@Param("pid")Integer pid,@Param("title")String title, @Param("percode")String percode, @Param("open")Integer open,
				 @Param("ordernum")Integer ordernum, @Param("available")Integer available);
	
}
